<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<div th:fragment="com1">
    com1
</div>
<div th:fragment="com2">
    com2
</div>
<div id="com3">
    com3
</div>
</html>